package chapter3;

/**
 * 将整数类型都转为int类型
 */
public class Test3_8_3 {
    public static void main(String[] args) {
        byte num_b = 127;
        int num = num_b;
        System.out.println(num);

        short num_s = 12;
        num = num_s;
        System.out.println(num);

        long num_l = 1111111111111111l;
        num = (int)num_l;
        System.out.println(num);

        float num_f = 2.1f;
        num = (int)num_f;
        System.out.println(num);

        double num_d = 1.33343434;
        num = (int)num_d;
        System.out.println(num);

        char c = 'a';
        num = c;
        System.out.println(num);

    }
}
